package com.ws.system.role.mapper;

import com.ws.system.role.entity.SystemRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author weifucheng
 * @since 2019-11-11
 */
@Mapper
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    List<SystemRole> listByParam(Page<SystemRole> page, @Param("param") SystemRole systemRole);

    List<SystemRole> listByParam(@Param("param") SystemRole systemRole);

    List<SystemRole> listUserRoles(@Param("param") SystemRole systemRole);

    List<SystemRole> listByUserId(@Param("param") SystemRole systemRole);
}
